﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jive.Models
{
    public class EmoticonModel:INotifyPropertyChanged
    {
        private EmoticonType _emoticonType;
        public EmoticonType EmoticonType
        {
            get { return _emoticonType; }
            set
            {
                if (_emoticonType != value)
                {
                    _emoticonType = value;
                    RaisePropertyChanged("EmoticonType");
                }
            }
        }

       
        private object _emoticonShortcut;
        public object EmoticonShortcut
        {
            get { return _emoticonShortcut; }
            set
            {
                if (_emoticonShortcut != value)
                {
                    _emoticonShortcut = value;
                    RaisePropertyChanged("EmoticonShortcut");
                }
            }
        }


        private string _emoticonPath;
        public string EmoticonPath
        {
            get { return _emoticonPath; }
            set
            {
                if (_emoticonPath != value)
                {
                    _emoticonPath = value;
                    RaisePropertyChanged("EmoticonUrl");
                }
            }
        }



        public EmoticonModel()
        {

        }
        protected virtual void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
    public enum EmoticonType
    {
        DefaultEmoticon,
        CustomEmoticon
    }
}
